package com.yayan.xh.dao;

import java.util.List;
import java.util.Map;

import com.yayan.xh.bean.ReviewBean;

public interface IReviewDao {
	
	/**
	 * 查询赛事回顾总页数
	 * @param map
	 * @return
	 */
	Integer getReviewPageCount(Map<String, String> map) throws Exception;
	
	/**
	 * 分页查询赛事回顾
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> getReviewPage(Map<String, String> map) throws Exception;
	
	/**
	 * 查询单个信息
	 * @param map
	 * @return
	 * @throws Exception
	 */
	List<Map<String, Object>> getReviewById(Map<String, String> map) throws Exception;
	
	/**
	 * 通过赛事id查询
	 * @param map
	 * @return
	 * @throws Exception
	 */
	ReviewBean getReviewByMatchId(Map<String, String> map) throws Exception;
	
	/**
	 * 保存回顾
	 * @param map
	 * @return
	 * @throws Exception
	 */
	boolean saveReview(Map<String, String> map) throws Exception;
	
	/**
	 * 修改回顾
	 * @param map
	 * @return
	 * @throws Exception
	 */
	boolean modifyReview(Map<String, String> map) throws Exception;
	
	/**
	 * 后台查询所有
	 * @param map
	 * @return
	 * @throws Exception
	 */
	List<ReviewBean> getReviewBack(Map<String, String> map) throws Exception;
}
